package com.joinval.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.joinval.common.base.entity.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 字典明细
 *
 * @author xu
 * @email -
 * @date 2020-08-24 19:17:15
 */
@Data
@TableName("sys_dict_item")
@EqualsAndHashCode(callSuper = false)
public class SysDictItem extends BaseEntity{

	/**
	 * 字典表主键
	 */
	@TableId
	private Long sysDictItemId;


	/**
	 * 字典项文本
	 */
	@Length(max = 200,message = "字典项文本最长为200字符")
	@NotBlank(message = "字典项文本不能为空")
	private String itemText;

	/**
	 * 字典项值
	 */
	@Length(max = 200,message = "字典项值最长为200字符")
	@NotBlank(message = "字典项值不能为空")
	private String itemValue;

	/**
	 * 字典编码
	 */
	@Length(max = 60,message = "字典编码最长为60字符")
	@NotBlank(message = "字典编码不能为空")
	private String dictCode;

}
